public class chapter4_3_2{
    public static void main(String[] args){
        int[] a = {1,3,4,5,0,0,6,6,5,4,7,6,7,0,5};
        int[] b = new int[15];
        int i = 0;
        int j = 0;
        while(i < 15)
        {
            if(a[i]>0){
                b[j] = a[i];
                j = j + 1;
            }
            i = i + 1;
        }
        //依次输出b数组中的元素
        int k = 0;
        while(k < j)
        {
            System.out.println(b[k]);
            k = k + 1;
        }
    }
}